<template>
	<view class="wrap">
		<view class="header">
			<u-swiper :list="imgList" :autoplay="true" :duration="3000" height="400" bg-color="#f5f4f8"
				indicator-pos="bottomRight" mode="number" @click="detailsimg"></u-swiper>
		</view>
		<view class="content">
			<view class="name">苏泊尔豆浆机 多功能榨汁机 苏泊尔豆浆机 多功能榨汁机 多功能榨汁机</view>
			<view class="shi">
				<view class="shichang">
					<image class="s_img" src="../../static/images/iconimg/shi.png" mode=""></image>
					<text class="s_name">市场参考价¥599.00</text>
				</view>
				<view class="rigname">
					<view>已兑换</view>
				</view>
			</view>
			<view class="item_txt">
				<view class="integ">
					<image class="i_img" src="../../static/images/iconimg/integ.png" mode=""></image>
					<text class="i_dui">兑换积分：2000</text>
				</view>
				<view class="yidui">
					<view>3000份</view>
				</view>
			</view>
		</view>
		<view class="detail_list">
			<view class="detailsname">
				图文详情
			</view>
			<view class="details_img">
				<image src="../../static/linshi/img.png" mode=""></image>
				<image src="../../static/linshi/img1.png" mode=""></image>
			</view>
		</view>
		<view class="footer">
			<view class="btn" @click="btn">兑换</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				imgList: [{
						image: '../../static/linshi/img.png'
					},
					{
						image: '../../static/linshi/img1.png'
					}
				],
			}
		},
		methods: {
			detailsimg() {
				uni.previewImage({
					indicator: "number",
					loop: true,
					urls: this.imgList
				})
			},
			btn(){
				uni.navigateTo({
					url:"order"
				})
			}
		}
		
	}
</script>

<style lang="scss" scoped>
	page {
		height: 100%;
		background-color: #f6f5f9;
	}

	.wrap {
		height: 100%;

		.header {
			height: 400rpx;
		}

		.content {
			background-color: #FFFFFF;
			padding-bottom: 50rpx;
			.name {
				margin-top: 25rpx;
				padding: 0 30rpx;
				font-size: 28rpx;
				color: #333333;
				line-height: 50rpx;
				background-color: #FFFFFF;
			}

			.shi {
				margin-top: 25rpx;
				padding: 0 30rpx;
				font-size: 28rpx;
				padding: 0 30rpx;
				font-size: 28rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				background-color: #FFFFFF;
				.shichang {
					.s_img {
						display: inline-block;
						vertical-align: middle;
						width: 48rpx;
						height: 48rpx;
					}

					.s_name {
						display: inline-block;
						color: #e10028;
						margin-left: 7rpx;
					}
				}

				.rigname {
					color: #999999;
				}
			}

			.item_txt {
				margin-top: 25rpx;
				padding: 0 30rpx;
				font-size: 28rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				background-color: #FFFFFF;
				.integ {
					.i_img {
						display: inline-block;
						vertical-align: middle;
						width: 48rpx;
						height: 48rpx;
					}

					.i_dui {
						color: #e10028;
						display: inline-block;
						margin-left: 7rpx;
					}
				}

				.yidui {
					color: #999999;
				}
			}
		}
		.detail_list{
			background-color: #FFFFFF;
			height: 100%;
			.detailsname{
				margin-top: 30rpx;
				padding: 0 30rpx;
				height: 90rpx;
				display: flex;
				align-items: center;
				color: #999999;
				background-color: #FFFFFF;
				font-size: 28rpx;
			}
			.details_img{
				width: 100%;
				uni-image{
					width: 100%;
				}
				image{
					width: 100%;
				}
			}
		}

		.footer {
			position: fixed;
			bottom: 0;
			width: 100%;
			height: 100rpx;
			background-color: #28B07C;
			color: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			/* 不放大不缩小固定100rpx */
		}
	}
</style>
